Pre-create the output doc directory
authorAlex Crichton <alex@alexcrichton.com>
Tue, 13 Oct 2015 17:31:40 +0000 (10:31 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 13 Oct 2015 23:02:34 +0000 (16:02 -0700)
commit2a6143ac0ba275988e10feb336d342ea4dcb8d4f
tree8d7d79be1d0ac463a05683920bc45a932069a5e5
parent7b630d45d716e6d6a695b93ff59ac4d5aaeabe7c
Pre-create the output doc directory

Cargo will run rustdoc concurrently if it can, and rustdoc is instructed to
place output in a central location. Rustdoc itself knows how to handle
concurrent invocations, but it requires that the output location exists for this
to work correctly (as otherwise the rustdoc processes will race to create the
directory). While this may also be fixable upstream, for now just precreate the
doc directory to ensure that rustdoc doesn't race trying to create it.
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_doc.rs